package com.aloha.springframework.test.event;

import com.aloha.springframework.context.ApplicationContext;
import com.aloha.springframework.context.event.ApplicationContextEvent;

/**
 * @author DaiZhiHeng
 * @description 用户自定的事件
 * @date 2023/7/4 8:20
 */
public class CustomEvent extends ApplicationContextEvent {
    private String content;

    public CustomEvent(ApplicationContext source) {
        super(source);
    }

    public CustomEvent(ApplicationContext source, String content) {
        super(source);
        this.content = content;
    }

    public String getContent() {
        return content;
    }
}
